﻿<%@ Page Title="QC SicoNide Particle Size" Language="C#" MasterPageFile="~/TableMaster.master" AutoEventWireup="true" CodeFile="qc_siconide_particle_size.aspx.cs" Inherits="Pages_qc_siconide_particle_size" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {

            .resTbl tr:nth-of-type(odd) {
                background-color: #CDE2FF;
            }

            .resTbl tr:nth-of-type(1) {
                display: none;
            }

            .resTbl td:nth-of-type(1):before {
                content: "PO Number ";
            }

            .resTbl td:nth-of-type(2):before {
                content: "DRUM NUMBER ";
            }

            .resTbl td:nth-of-type(3):before {
                content: "D10";
            }

            .resTbl td:nth-of-type(4):before {
                content: "D50";
            }

            .resTbl td:nth-of-type(5):before {
                content: "D90";
            }

            .resTbl td:nth-of-type(6):before {
                content: "D99";
            }

            .resTbl td:nth-of-type(7):before {
                content: "SSA";
            }

            .resTbl td:nth-of-type(8):before {
                content: "Free SI";
            }

            .resTbl td:nth-of-type(9):before {
                content: "α Phase";
            }

            .resTbl td:nth-of-type(10):before {
                content: "Remark";
            }

            .resTbl td:nth-of-type(11):before {
                content: "Created By";
            }

            .resTbl td:nth-of-type(12):before {
                content: "Created Date";
            }
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Add" runat="Server">


    <asp:Panel ID="pnlAdd" runat="server">

        <table cellpadding="0" cellspacing="0" style="width: 100%;">

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblPO_Number" runat="server" AssociatedControlID="txtPO_Number" Text="PO Number :"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPO_Number" runat="server" validate="PO"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblDRUM_NUMBER" runat="server" AssociatedControlID="txtDRUM_NUMBER" Text="DRUM NUMBER :"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtDRUM_NUMBER" runat="server"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblD10" runat="server" AssociatedControlID="txtD10" Text="D10:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtD10" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblD50" runat="server" AssociatedControlID="txtD50" Text="D50:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtD50" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblD90" runat="server" AssociatedControlID="txtD90" Text="D90:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtD90" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblD99" runat="server" AssociatedControlID="txtD99" Text="D99:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtD99" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblSSA" runat="server" AssociatedControlID="txtSSA" Text="SSA:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtSSA" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblFree_SI" runat="server" AssociatedControlID="txtFree_SI" Text="Free SI:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtFree_SI" runat="server" Validate="Decimal"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblAlpha_Phase" runat="server" AssociatedControlID="txtAlpha_Phase" Text="α Phase:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtAlpha_Phase" runat="server"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td style="width: 170px">
                    <asp:Label ID="lblRemark" runat="server" AssociatedControlID="txtRemark" Text="Remark:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Height="58px" Width="232px"></asp:TextBox>
                </td>
            </tr>



            <tr>
                <td style="width: 170px">&nbsp;</td>
                <td>

                    <asp:Button ID="btnSave" runat="server" CssClass="btn btn-success" OnClick="btnSave_Click" Text="Save" Width="90px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" CssClass="btn btn-danger" OnClick="btnCancel_Click" Text="Cancel" Width="90px" />

                </td>
            </tr>

        </table>

    </asp:Panel>

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Grid" runat="Server">

    <asp:Panel ID="pnlList" runat="server">
        <asp:GridView ID="gridClients" runat="server" AutoGenerateColumns="False" CssClass="resTbl" DataSourceID="DS_tbl_qc_siconide_particle_size">
            <Columns>
                <asp:BoundField DataField="PO_Number" HeaderText="PO Number " SortExpression="PO_Number" />
                <asp:BoundField DataField="DRUM_NUMBER" HeaderText="DRUM NUMBER " SortExpression="DRUM_NUMBER" />
                <asp:BoundField DataField="D10" HeaderText="D10" SortExpression="D10" />
                <asp:BoundField DataField="D50" HeaderText="D50" SortExpression="D50" />
                <asp:BoundField DataField="D90" HeaderText="D90" SortExpression="D90" />
                <asp:BoundField DataField="D99" HeaderText="D99" SortExpression="D99" />
                <asp:BoundField DataField="SSA" HeaderText="SSA" SortExpression="SSA" />
                <asp:BoundField DataField="Free_SI" HeaderText="Free SI" SortExpression="Free_SI" />
                <asp:BoundField DataField="Alpha_Phase" HeaderText="α Phase" SortExpression="Alpha_Phase" />
                <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" />
                <asp:BoundField DataField="CREATED_BY" HeaderText="Created By" SortExpression="CREATED_BY" />
                <asp:BoundField DataField="CREATED_DATE" HeaderText="Created Date" SortExpression="CREATED_DATE" DataFormatString="{0:yyMMdd}"/>

                <asp:TemplateField HeaderText="Edit">
                    <ItemTemplate>
                        <asp:LinkButton ID="linkEdit" runat="server" Text="Edit" CommandArgument='<%# Eval("ID") %>' OnClick="linkEdit_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete">
                    <ItemTemplate>
                        <asp:LinkButton ID="linkDelete" CommandName="delete" runat="server" Text="Delete" OnClientClick="javascript:return confirm('Are you sure you want to delete this record?');" CommandArgument='<%# Eval("ID") %>' OnClick="linkDelete_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="DS_tbl_qc_siconide_particle_size" runat="server" SelectMethod="selectAllForGrid" DeleteMethod="delete" InsertMethod="insert" UpdateMethod="update" TypeName="DAL_tbl_qc_siconide_particle_size">
            <DeleteParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="PO_Number" Type="String" />
                <asp:Parameter Name="DRUM_NUMBER" Type="String" />
                <asp:Parameter Name="D10" Type="String" />
                <asp:Parameter Name="D50" Type="String" />
                <asp:Parameter Name="D90" Type="String" />
                <asp:Parameter Name="D99" Type="String" />
                <asp:Parameter Name="SSA" Type="String" />
                <asp:Parameter Name="Free_SI" Type="String" />
                <asp:Parameter Name="Alpha_Phase" Type="String" />
                <asp:Parameter Name="Remark" Type="String" />
                <asp:Parameter Name="CREATED_BY" Type="String" />
                <asp:Parameter Name="CREATED_DATE" Type="DateTime" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="PO_Number" Type="String" />
                <asp:Parameter Name="DRUM_NUMBER" Type="String" />
                <asp:Parameter Name="D10" Type="String" />
                <asp:Parameter Name="D50" Type="String" />
                <asp:Parameter Name="D90" Type="String" />
                <asp:Parameter Name="D99" Type="String" />
                <asp:Parameter Name="SSA" Type="String" />
                <asp:Parameter Name="Free_SI" Type="String" />
                <asp:Parameter Name="Alpha_Phase" Type="String" />
                <asp:Parameter Name="Remark" Type="String" />
                <asp:Parameter Name="UPDATED_BY" Type="String" />
                <asp:Parameter Name="UPDATED_DATE" Type="DateTime" />
            </UpdateParameters>
        </asp:ObjectDataSource>
    </asp:Panel>

</asp:Content>

